package mybatis.interfaces.impl;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import mybatis.interfaces.IFieldQueryCondition;

import java.util.List;
import java.util.Map;

/**
 * @author CKC
 */
@NoArgsConstructor
@Builder(toBuilder = true)
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@Data
public class FieldQueryCondition implements IFieldQueryCondition {

    private static final long serialVersionUID = 4236437957549093500L;

    @ApiModelProperty(name = "fields[?]", value = "需要返回的字段，可过滤嵌套的字段，eg：fields[users]=id,name 表示 仅返回用户对象的id,name")
    @JsonIgnore
    private final transient String fieldsSwaggerView = null;
    protected Map<String, List<String>> fields;

}
